/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.udistrital.framework.adminMenu.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author nrodriguez
 */
@Entity
@Table(name = "amopc")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Amopc.findAll", query = "SELECT a FROM Amopc a"),
    @NamedQuery(name = "Amopc.findByAopide", query = "SELECT a FROM Amopc a WHERE a.aopide = :aopide"),
    @NamedQuery(name = "Amopc.findByAopjeq", query = "SELECT a FROM Amopc a WHERE a.aopjeq = :aopjeq"),
    @NamedQuery(name = "Amopc.findByAopord", query = "SELECT a FROM Amopc a WHERE a.aopord = :aopord"),
    @NamedQuery(name = "Amopc.findByAopmnu", query = "SELECT a FROM Amopc a WHERE a.aopmnu = :aopmnu"),
    @NamedQuery(name = "Amopc.findByAopurl", query = "SELECT a FROM Amopc a WHERE a.aopurl = :aopurl")})
public class Amopc implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "aopide")
    private Integer aopide;
    @Column(name = "aopjeq")
    private Integer aopjeq;
    @Column(name = "aopord")
    private Integer aopord;
    @Column(name = "aopmnu")
    private String aopmnu;
    @Column(name = "aopurl")
    private String aopurl;

    public Amopc() {
    }

    public Amopc(Integer aopide) {
        this.aopide = aopide;
    }

    public Integer getAopide() {
        return aopide;
    }

    public void setAopide(Integer aopide) {
        this.aopide = aopide;
    }

    public Integer getAopjeq() {
        return aopjeq;
    }

    public void setAopjeq(Integer aopjeq) {
        this.aopjeq = aopjeq;
    }

    public Integer getAopord() {
        return aopord;
    }

    public void setAopord(Integer aopord) {
        this.aopord = aopord;
    }

    public String getAopmnu() {
        return aopmnu;
    }

    public void setAopmnu(String aopmnu) {
        this.aopmnu = aopmnu;
    }

    public String getAopurl() {
        return aopurl;
    }

    public void setAopurl(String aopurl) {
        this.aopurl = aopurl;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (aopide != null ? aopide.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Amopc)) {
            return false;
        }
        Amopc other = (Amopc) object;
        if ((this.aopide == null && other.aopide != null) || (this.aopide != null && !this.aopide.equals(other.aopide))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.udistrital.ud.modelo.Amopc[ aopide=" + aopide + " ]";
    }
    
}
